<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>AddPlanBasicInfo</title>
<link rel="stylesheet" type="text/css" href="../css/blueprint/screen.css" media="screen, projection"/>
<script type="text/javascript" src="../script/jquery-1.3.2.min.js"></script>
<script type="text/javascript">
    $(document).ready(function() {

        loadTempSavedData();

        $("#tempSave").click(function() {
            $.getJSON("AddPlanTempSaveTDLYXZ.action", 
                {
                    "tdfkfaBasicXmqtdlyxz.yphgdmj": $("#yphgdmj").val(),
                    "tdfkfaBasicXmqtdlyxz.nphgdmj": $("#nphgdmj").val(),
                    "tdfkfaBasicXmqtdlyxz.yphydmj": $("#yphydmj").val(),
                    "tdfkfaBasicXmqtdlyxz.nphydmj": $("#nphydmj").val(),
                    "tdfkfaBasicXmqtdlyxz.yphldmj": $("#yphldmj").val(),
                    "tdfkfaBasicXmqtdlyxz.nphldmj": $("#nphldmj").val(),
                    "tdfkfaBasicXmqtdlyxz.yphmcdmj": $("#yphmcdmj").val(),
                    "tdfkfaBasicXmqtdlyxz.nphmcdmj": $("#nphmcdmj").val(),
                    "tdfkfaBasicXmqtdlyxz.yphqtnydmj": $("#yphqtnydmj").val(),
                    "tdfkfaBasicXmqtdlyxz.nphqtnydmj": $("#nphqtnydmj").val(),
                    "tdfkfaBasicXmqtdlyxz.yphjsydmj": $("#yphjsydmj").val(),
                    "tdfkfaBasicXmqtdlyxz.nphjsydmj": $("#nphjsydmj").val(),
                    "tdfkfaBasicXmqtdlyxz.yphwlydmj": $("#yphwlydmj").val(),
                    "tdfkfaBasicXmqtdlyxz.nphwlydmj": $("#nphwlydmj").val()
                },
                function(data) {
                    if (data.tempSaveStatus == "success") {
                        $(parent.LeftFrame.document).contents().find("#tempDataSaver").val("success");
                    } else if (data.tempSaveStatus == "failed") {
                        $(parent.LeftFrame.document).contents().find("#tempDataSaver").val("failed");
                    }
                }
            );
        });
    });
    function loadTempSavedData() {
        $.getJSON("AddPlanTempLoadTDLYXZ.action", 
            function(data) {
                if (data.tdfkfaBasicXmqtdlyxz != null) {
                    $("#yphgdmj").val(data.tdfkfaBasicXmqtdlyxz.yphgdmj);
                    $("#nphgdmj").val(data.tdfkfaBasicXmqtdlyxz.nphgdmj);
                    $("#yphydmj").val(data.tdfkfaBasicXmqtdlyxz.yphydmj);
                    $("#nphydmj").val(data.tdfkfaBasicXmqtdlyxz.nphydmj);
                    $("#yphldmj").val(data.tdfkfaBasicXmqtdlyxz.yphldmj);
                    $("#nphldmj").val(data.tdfkfaBasicXmqtdlyxz.nphldmj);
                    $("#yphmcdmj").val(data.tdfkfaBasicXmqtdlyxz.yphmcdmj);
                    $("#nphmcdmj").val(data.tdfkfaBasicXmqtdlyxz.nphmcdmj);
                    $("#yphqtnydmj").val(data.tdfkfaBasicXmqtdlyxz.yphqtnydmj);
                    $("#nphqtnydmj").val(data.tdfkfaBasicXmqtdlyxz.nphqtnydmj);
                    $("#yphjsydmj").val(data.tdfkfaBasicXmqtdlyxz.yphjsydmj);
                    $("#nphjsydmj").val(data.tdfkfaBasicXmqtdlyxz.nphjsydmj);
                    $("#yphwlydmj").val(data.tdfkfaBasicXmqtdlyxz.yphwlydmj);
                    $("#nphwlydmj").val(data.tdfkfaBasicXmqtdlyxz.nphwlydmj);
                }

                watchDataEdited();
            }
        );
    }
    function watchDataEdited() {
    	$("input[type='text'],input[type='radio'],input[type='checkbox']").change(function() {
            $(parent.LeftFrame.document).contents().find("#dataEditWatcher").val("changed");
            $(parent.LeftFrame.document).contents().find("#tempDataSaver").val("");
        });
    }
</script>
<style type="text/css">
<!--
.style2 {
	font-size: 36px;
	font-weight: bold;
}
-->
</style>
</head>
<body>
<table cellspacing="0" cellpadding="0" width="100%" border="0">
    <tr>
        <td width="20%" colspan="2"><div align="center" class="style2">土地利用现状</div>
        <hr></hr></td>
    </tr>
    <tr>
        <td align="right" style="width: 30%; height: 25px; color: Red;">请选择面积单位：</td>
        <td style="height: 25px">
            <input type="radio" name="useSQUnit" id="idUseMU" value="mu" /><label for="idUseMU">亩</label>
            <input type="radio" name="useSQUnit" id="idUseHA" value="ha" /><label for="idUseHA">公顷</label>
            <input type="radio" name="useSQUnit" id="idUseSQM" value="sq.m." /><label for="idUseSQM">平方米</label></td>
    </tr>
    <tr>
        <td height="25" width="30%" align="right">已破坏耕地面积：</td>
        <td height="25" style="width: 448px"><input type="text" id="yphgdmj"/></td>
    </tr>
    <tr>
        <td height="25" width="30%" align="right">拟破坏耕地面积：</td>
        <td height="25" style="width: 448px"><input type="text" id="nphgdmj"/></td>
    </tr>
    <tr>
        <td height="25" width="30%" align="right">已破坏园地面积：</td>
        <td height="25" style="width: 448px"><input type="text" id="yphydmj"/></td>
    </tr>
    <tr>
        <td width="30%" align="right" style="height: 25px">拟破坏园地面积：</td>
        <td style="width: 448px; height: 25px"><input type="text" id="nphydmj"/></td>
    </tr>
    <tr>
        <td height="25" width="30%" align="right">已破坏林地面积：</td>
        <td height="25" style="width: 448px"><input type="text" id="yphldmj"/></td>
    </tr>
    <tr>
        <td width="30%" align="right" style="height: 25px">拟破坏林地面积：</td>
        <td style="height: 25px; width: 448px;"><input type="text" id="nphldmj"/></td>
    </tr>
    <tr>
        <td height="25" width="30%" align="right">已破坏牧草地面积：</td>
        <td height="25" style="width: 448px"><input type="text" id="yphmcdmj"/></td>
    </tr>
    <tr>
        <td height="25" width="30%" align="right">拟破坏牧草地面积：</td>
        <td height="25" style="width: 448px"><input type="text" id="nphmcdmj"/></td>
    </tr>
    <tr>
        <td height="25" width="30%" align="right">已破坏其他农用地面积：</td>
        <td height="25" style="width: 448px"><input type="text" id="yphqtnydmj"/></td>
    </tr>
    <tr>
        <td height="25" width="30%" align="right">拟破坏其他农用地面积：</td>
        <td height="25" style="width: 448px"><input type="text" id="nphqtnydmj"/></td>
    </tr>
    <tr>
        <td width="30%" align="right" style="height: 25px">已破坏建设用地面积：</td>
        <td style="height: 25px; width: 448px;"><input type="text" id="yphjsydmj"/></td>
    </tr>
    <tr>
        <td width="30%" align="right" style="height: 25px">拟破坏建设用地面积：</td>
        <td style="height: 25px; width: 448px;"><input type="text" id="nphjsydmj"/></td>
    </tr>
    <tr>
        <td height="25" width="30%" align="right">已破坏未利用地面积：</td>
        <td height="25" style="width: 448px"><input type="text" id="yphwlydmj"/></td>
    </tr>
    <tr>
        <td height="25" width="30%" align="right">拟破坏未利用地面积：</td>
        <td height="25" style="width: 448px"><input type="text" id="nphwlydmj"/></td>
    </tr>
    <tr>
        <td width="20%" height="25"><div align="right"><input type="button" id="tempSave" value="暂存" /></div></td>
        <td style="width: 448px">&nbsp;</td>
    </tr>
</table>
</body>
</html>